package com.mipo.mybatis.mysql.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mipo.mybatis.mysql.base.BaseServiceImpl;
import com.mipo.mybatis.mysql.mapper.UserMapper;
import com.mipo.mybatis.mysql.model.po.User;
import com.mipo.mybatis.mysql.service.IUserService;

@Service("mybatis-userServiceImpl")
public class UserServiceImpl extends BaseServiceImpl<User> implements IUserService {

	private UserMapper userMapper;
	
	@Resource
    public void constantMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
        super.setMapper(userMapper);
    }
	
	@Override
	public List<User> searchUserByPram(Map<String, Object> param) {
		return userMapper.searchUserByPram(param);
	}
	
	public void test(){
		System.out.println("te");
	}

}
